<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Academia</title>



<link type="text/css" rel="stylesheet" href="css/estilos.css" />

<link type="text/css" rel="stylesheet" href="css/menu.css" />



</head>
<br/>
	<h:head>
		<title>#{msgs.title_sistema} - #{msgs.title_CadastroDespesa}</title>
	</h:head>
	<h:body>
	<br/>
		<center>
			<h1> #{msgs.title_CadastroDespesa} </h1>

		</center>
		<h:form>
            
			<h3>#{msgs.title_DadosDaDespesa}</h3>
			<h:panelGrid columns="2" >
					<h:outputText value="#{msgs.field_tipoDespesa}"/>

			 		<h:selectOneMenu  value="#{despesaMBean.entidade.tipo}">
						<f:selectItems value="#{despesaMBean.tipoDespesa.listEntidade}" var="tipoDespesa" itemValue="#{tipoDespesa}" itemLabel="#{tipoDespesa.descricao}"/>
					</h:selectOneMenu>
				

			 </h:panelGrid>		

			
			<h:commandButton value="#{msgs.button_cadastrar}" action="#{despesaMBean.saveOrUpdate }" />
			<h:commandButton value="#{msgs.button_cancelar}" action="#{despesaMBean.actionCancelar }" />
		</h:form>
	</h:body>
</html>